package com.example.cloud.model.basic;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by wangtao on 2018/6/5.
 * 病房明细(家庭)
 */
@Entity(name = "basic_home_project")
@Data
@EqualsAndHashCode(callSuper = false)
public class HomeProject extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 病房编号
    @Column(name = "home_id")
    private Long homeId;
    // 方案类型 1: 基本方案 2：可选方案
    @Column(name = "plan_type", columnDefinition = "INT DEFAULT 0")
    private int planType;
    // 项目
    @Column(name = "project_id")
    private Long projectId;
    @Column(name = "project_name")
    private String projectName;
    // 单价
    @Column(name = "price")
    private BigDecimal price;
    // 数量
    @Column(name = "quantity")
    private int quantity;
}
